import arcpy

arcpy.env.workspace = "C:/ArcpyBook/data"
try:
    fieldList = arcpy.ListFields("Burglaries_2009.shp")
    for fld in fieldList:
        print fld.name
except Exception,e:
    print e.message();
